<?php

use Illuminate\Support\Facades\Schema;
use Illuminate\Database\Schema\Blueprint;
use Illuminate\Database\Migrations\Migration;

class CreateGasFee extends Migration
{
    /**
     * Run the migrations.
     *
     * @return void
     */
    public function up()
    {
        Schema::create('gas_fee', function (Blueprint $table) {
            $table->bigIncrements('id')->comment('燃气费表自增id');
            $table->string('gas_number')->comment('燃气表编号');
            $table->string('house_number')->comment('门牌号');
            $table->string('username')->comment('户主姓名');
            $table->integer('start_number')->comment('起始数');
            $table->integer('end_number')->comment('截止数');
            $table->integer('unit_price')->comment('单价');
            $table->decimal('cost',8,2)->comment('费用');
            $table->decimal('cost_type',8,2)->comment('费用类型');
            $table->integer('status')->comment('付费状态');
            $table->integer('consumption')->comment('用量');
            $table->integer('pay_type')->comment('支付方式');
            $table->integer('pay_status')->comment('付费状态');
            $table->bigInteger('community_id')->comment('所属小区id');
            $table->timestamps();
        });
    }

    /**
     * Reverse the migrations.
     *
     * @return void
     */
    public function down()
    {
        Schema::dropIfExists('gas_fee');
    }
}
